<?php
	class monhocbs
	{
		public $MaMonHoc = 0;
		public $TenMonHoc = "";
		public $HeSo = 0 ;
		public function Add()
		{
			$db = new monhocdb();
			return $db->Add($this->TenMonHoc, $this->HeSo);
		}
		
		public function Delete()
		{
			$db = new monhocdb();
			return $db->Delete($this->MaMonHoc);
		}
		
		public function Update()
		{
			$db = new monhocdb();
			return $db->Update($this->MaMonHoc, $this->TenMonHoc, $this->HeSo);
		}
		
		public function GetList()
		{
			$db = new monhocdb();
			return $db->GetList($this->MaMonHoc, $this->TenMonHoc);
		}
		
		public function Find()
		{
			$db = new monhocdb();
			return $db->Find($this->TenMonHoc);
		}
	}
?>